import request from '@/utils/request'

// 登录
export const login = (data: any) => request.post({ url: '/adminapi/account/login', data})

// 获取用户信息
export const getUserInfo = () => request.get({ url: '/adminapi/system.admin/myself'})

/**
 * 退出登录
 */
export const logout = () => request.post({ url: '/adminapi/account/logout'})
